import request from "@/utils/request";

// 查询企业认证列表
export function listWbEntAuth(query) {
  return request({
    url: "/wb/wbEntAuth/list",
    method: "get",
    params: query,
  });
}

// 查询企业认证列表
export function listEntAuthWb(query) {
  return request({
    url: "/wb/wbEntAuth/listEntAuthWb",
    method: "get",
    params: query,
  });
}

// 查询企业认证详细
export function getWbEntAuth(id) {
  return request({
    url: "/wb/wbEntAuth/" + id,
    method: "get",
  });
}

// 新增企业认证
export function addWbEntAuth(data) {
  return request({
    url: "/wb/wbEntAuth",
    method: "post",
    data: data,
  });
}

// 修改企业认证
export function updateWbEntAuth(data) {
  return request({
    url: "/wb/wbEntAuth",
    method: "put",
    data: data,
  });
}

// 删除企业认证
export function delWbEntAuth(id) {
  return request({
    url: "/wb/wbEntAuth/" + id,
    method: "delete",
  });
}
/**获取企业类型 */
export function entType(data) {
  return request({
    url: "/system/dict/data/type/ent_type",
    method: "get",
  });
}

/**获取机构列表 */
export function organizationList(params) {
  return request({
    url: "/wb/organization/list",
    method: "get",
    params,
  });
}
/**审核机构 */
export function organizationCheck(data) {
  return request({
    url: "/wb/organization",
    method: "put",
    data,
  });
}
/**删除机构申请 */
export function delOrganization(data) {
  return request({
    url: `/wb/organization/${data}`,
    method: "delete",
  });
}
